
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Rectangle)
{
	TEST(Square should 20 with length 5)
	{
		Square square(5);
		ASSERT_EQ(20, square.getPerimeter());
	}

	TEST(Square area should 36 with length 6)
	{
		Square square(6);
		ASSERT_EQ(36, square.getArea());
	}

        TEST(Square should 28 with length 7)
        {
                Square square(5);
                ASSERT_EQ(20, square.getPerimeter());
		square.setLength(7);
		ASSERT_EQ(28, square.getPerimeter());
        }

        TEST(Square area should 49 with length 7)
        {
                Square square(6);
                ASSERT_EQ(36, square.getArea());
		square.setLength(7);
		ASSERT_EQ(49, square.getArea());
        }


};
